home *** CD-ROM | disk | FTP | other *** search
/ Power CD / Power CD ATARI-Rechner Lieben.iso / SPEZIAL / GEMVIEW / VERSION.3 / MODULS.SRC / LOADMODL / DUPSTRIN.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-15  |  282 b   |  19 lines

  1. #include "copyrigh.h"
  2. #include "image.h"
  3. #include "spx_img.h"
  4.  
  5.  
  6. char *DupString(LOAD_Structure *loadS, char *s)
  7. {
  8.   char *d;
  9.  
  10.   if (!s)
  11.     return(NULL);
  12.   d= (char *)loadS->memory.malloc(strlen(s) + 1);
  13.   if (d)
  14.     strcpy(d, s);
  15.   else
  16.     d = s;
  17.   return(d);
  18. }
  19.